package com.umsoft.chapter4.test;

public class SequenceA implements Sequence {
    public static int number = 0;

    @Override
    public int getNumber() {
        return ++number;
    }

    public static void main(String[] args){
        Sequence sequence = new SequenceC();
        ClientThread thread1 = new ClientThread(sequence);
        ClientThread thread2 = new ClientThread(sequence);
        ClientThread thread3 = new ClientThread(sequence);

        thread1.start();
        thread2.start();
        thread3.start();
    }

}
